﻿@model SportMeetingPlanner.ViewModels.RegisterModel
@{
    ViewBag.Title = "Create User";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<br />
<div class="section">
    <table class="listTable" cellspacing="0">
        @using (Html.BeginForm("Create", "UserManager"))
        {
            <tr>
                <td class="leftColumn">
                    Name
                </td>
                <td class="rightColumn">
                    @Html.EditorFor(model => model.UserName)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    First name
                </td>
                <td class="rightColumn">
                    @Html.EditorFor(model => model.FirstName)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    Last name
                </td>
                <td class="rightColumn">
                    @Html.EditorFor(model => model.LastName)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    E-Mail
                </td>
                <td class="rightColumn">
                    @Html.EditorFor(model => model.Email)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    Tel Nr
                </td>
                <td class="rightColumn">
                    @Html.EditorFor(model => model.TelephoneNumber)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    Password
                </td>
                <td class="rightColumn">
                    @Html.PasswordFor(model => model.Password)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    Retype Password
                </td>
                <td class="rightColumn">
                    @Html.PasswordFor(model => model.RepeatPassword)
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
                <td>
                </td>
            </tr>
            <tr class="link">
                <td class="leftColumn" colspan="2">
                    <input type="submit" value="Create" />
                </td>
            </tr>
            <tr class="back">
                <td class="leftColumn" colspan="2">
                    @Html.ActionLink("Back", "Index")
                </td>
            </tr>
        }
    </table>
</div>
